/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/*
 * Only 8926-specific property overrides should be placed inside this
 * file. Device definitions should be placed inside the msm8226.dtsi
 * file.
 */

/include/ "msm8226.dtsi"
/include/ "msm8226-v2-pm.dtsi"

/ {
	model = "Qualcomm MSM 8926";
	compatible = "qcom,msm8926";
	qcom,msm-id = <200 0>,
		      <224 0>,
		      <200 0x10001>,
		      <224 0x10001>;
};

&soc {
	qcom,mss@fc880000 {
		reg = <0xfc880000 0x100>,
		      <0xfd485000 0x400>,
		      <0xfc820000 0x20>,
		      <0xfc401680 0x4>;
		reg-names = "qdsp6_base", "halt_base", "rmb_base",
			    "restart_reg";
		vdd_mss-supply = <&pm8226_s5>;
	};

	qcom,clock-a7@f9011050 {
		reg =	<0xf9011050 0x8>,
			<0xfc4b80b0 0x8>;
		reg-names = "rcg-base", "efuse";
		qcom,speed0-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
		qcom,speed6-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
		qcom,speed2-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
		qcom,speed5-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
		qcom,speed4-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
		qcom,speed7-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
		qcom,speed1-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1593600000 3>;
	};

	qcom,msm-thermal {
		qcom,cpu-sensors = "tsens_tz_sensor5", "tsens_tz_sensor5",
				"tsens_tz_sensor1", "tsens_tz_sensor1";
	};

	qcom,mpm@fc4281d0 {
		qcom,gpio-map = <3  1>,
			<4  4 >,
			<5  5 >,
			<6  9 >,
			<7  13>,
			<8  17>,
			<9  21>,
			<10  27>,
			<11  29>,
			<12  31>,
			<13  33>,
			<14  35>,
			<15  37>,
			<16  38>,
			<17  39>,
			<18  41>,
			<19  46>,
			<20  48>,
			<21  49>,
			<22  50>,
			<23  51>,
			<24  52>,
			<25  54>,
			<26  62>,
			<27  63>,
			<28  64>,
			<29  65>,
			<30  66>,
			<31  67>,
			<32  68>,
			<33  69>,
			<34  71>,
			<35  72>,
			<36  106>,
			<37  107>,
			<38  108>,
			<39  109>,
			<40  110>,
			<41  119>,
			<54  111>,
			<55  113>;
	};
};

&pm8226_l3 {
	regulator-min-microvolt = <750000>;
	regulator-max-microvolt = <1350000>;
};

&pm8226_l3_ao {
	regulator-min-microvolt = <750000>;
	regulator-max-microvolt = <1350000>;
};

&pm8226_l3_so {
	regulator-min-microvolt = <750000>;
	regulator-max-microvolt = <1350000>;
};

&pm8226_s2 {
	regulator-min-microvolt = <900000>;
	regulator-max-microvolt = <1350000>;
};

&apc_vreg_corner {
	qti,pvs-init-voltage = <1350000 1340000 1330000 1320000 1310000
					1300000 1290000 1280000 1270000 1260000
					1250000 1240000 1230000 1220000 1210000
					1200000 1190000 1180000 1170000 1160000
					1150000 1140000 1140000 1140000 1140000
					1140000 1140000 1140000 1140000 1140000
					1140000 1140000>;
	qti,pvs-corner-ceiling-slow = <1050000 1150000 1280000>;
	qti,pvs-corner-ceiling-nom  = <1050000 1080000 1200000>;
	qti,pvs-corner-ceiling-fast = <1050000 1050000 1100000>;
	qti,cpr-step-quotient = <30>;
	qti,cpr-up-threshold = <0>;
	qti,cpr-down-threshold = <5>;
	qti,cpr-apc-volt-step = <10000>;
};

&tsens {
	qcom,sensors = <6>;
	qcom,slope = <2901 2846 3038 2955 2901 2846>;
};

&msmgpio {
	ngpio = <121>;
};

&memory_hole {
	qcom,memblock-remove = <0x08000000 0x7500000
				0x0fa00000 0x500000>; /* Address and size of the hole */
};

&hsic_host {
	interrupt-map = <0 &intc 0 136 0
		1 &intc 0 148 0
		2 &msmgpio 119 0x8>;
	hsic,strobe-gpio = <&msmgpio 119 0x00>;
	hsic,data-gpio = <&msmgpio 120 0x00>;
};
